//
//  AXFCreditsRuleVC.m
//  BEEQUICK
//
//  Created by admin on 22/11/2016.
//  Copyright © 2016 SevenGroup. All rights reserved.
//

#import "AXFCreditsRuleVC.h"
#import "AXFWhiteNavView.h"

@interface AXFCreditsRuleVC ()<AXFWhiteNavViewDelegate>

@end

@implementation AXFCreditsRuleVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)setupUI {
	UIWebView *webView = [[UIWebView alloc] init];
	[self.view addSubview:webView];
	
	[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://m.beequick.cn/show/pointRule?__d=d14ryS1bFkB0dOBn%2Bvd9GDn55g34BaxSwQk6PAIdxaUcOZK4qZM5HpDIlnwAZPd5UyoGAl5VrxjngS7/VNfVPUj2iqrOmO6R3Ek0q/D53DOItoLlaw%2Bf/53dpER4x14eK17f&__v=ios5.9&location_hash=2e7577lNaa2SGYIfkVIoNiFqGKZJN%2B5FTxs8%2By9kiloWjXw%2BgbQ72jrK4GAqINz9FzBwcg1jo0ouZxrlweIQ&zchtauth=e2ce4bEoDMWWB15V98ApGBX150AVjnGXVN7pv7sV4WbS9fEQ&timestamp=1479966939889957&token=222f92ef2ba0b2f15c6f38c4dcbc47cc&mac=0502e2cd788ab0a1cc646aecbadad5b9"]]];
	
	AXFWhiteNavView *whiteNavView = [[AXFWhiteNavView alloc] init];
	
	[whiteNavView setTitleName:@"积分规则" andFunctionName:nil];
	
	whiteNavView.delegate = self;
	
	[self.view addSubview:whiteNavView];
	
	[whiteNavView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.right.top.offset(0);
		make.height.mas_equalTo(kNAVBARH + 20);
	}];
}

- (void)backToViewController {
	[self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
